package cn.meebook.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Book implements Serializable {

	private static final long serialVersionUID = 1618584641998282323L;
	
	@Id
	private String isbn;
	private String name;
	private String author;
	private String coverUrl;
	private String doubanUrl;
	
	protected Book() {
	}
	
    public Book(String isbn, String name, String author) {
    	this.isbn = isbn;
        this.name = name;
        this.author = author;
    }

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getCoverUrl() {
		return coverUrl;
	}

	public void setCoverUrl(String coverUrl) {
		this.coverUrl = coverUrl;
	}

	public String getDoubanUrl() {
		return doubanUrl;
	}

	public void setDoubanUrl(String doubanUrl) {
		this.doubanUrl = doubanUrl;
	}

	@Override
	public String toString() {
		return "Book [isbn=" + isbn + ", name=" + name + ", author=" + author + "]";
	}
    
}
